package com.example.cdpbookstore.tool;

import cn.hutool.captcha.generator.RandomGenerator;


public class CaptchaTool {
    public static String sendCaptcha(String email) {
        RandomGenerator randomGenerator = new RandomGenerator(6);
        String captcha = randomGenerator.generate();
        System.out.println(email + "的验证码：" + captcha);
//        MailUtil.send(email, "布克图书 - 验证码", captcha, false);
        return captcha;
    }
}
